<!--{template common/header}-->
<div class="bz-header">
	<div class="bz-header-left">
		<a href="javascript:history.back();" class="iconfont icon-fanhui"><em>{lang return}</em></a>
	</div>
	<h2><!--{eval echo strip_tags($_G['forum']['name']) ? strip_tags($_G['forum']['name']) : $_G['forum']['name'];}--></h2>
	<div class="bz-header-right">
		<a href="portal.php?mod=index&mobile=2" class="iconfont icon-home"></a>
		<!--{eval}-->
		if($_G['uid']){$favfids = C::t('home_favorite')->fetch_all_by_uid_idtype($_G['uid'], 'fid');foreach($favfids as $val){if($val['id'] == $_G[fid]){$isFav = $val['favid'];}}}
		<!--{/eval}-->
		<!--{if $isFav}-->		
		<!--{else}-->
		<a id="a_favorite" href="home.php?mod=spacecp&ac=favorite&type=forum&id=$_G[fid]&handlekey=favoriteforum&formhash={FORMHASH}" class="forum-fav iconfont icon-shoucang"></a>
		<!--{/if}-->
	</div>
</div>
<div class="banzhuan-top"></div>

<!--{hook/forumdisplay_top_mobile}-->

<div class="th">
	<!--{if CURMODULE != 'guide'}-->
	<div class="tf bz-fd-appl3 bz-bg-fff">
		<ul>
			<!--{if $_GET['specialtype'] == 'reward'}-->
			<!--{/if}-->

			<li>
				<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=lastpost&orderby=lastpost$forumdisplayadd[lastpost]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2{if $_GET['filter'] == 'lastpost'} xw1{/if}">{lang latest}</a>
			</li>
			<li>
				<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=heat&orderby=heats$forumdisplayadd[heat]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2{if $_GET['filter'] == 'heat'} xw1{/if}">{lang order_heats}</a>
			</li>
			<li>
				<a href="forum.php?mod=forumdisplay&fid=$_G[fid]&filter=digest&digest=1$forumdisplayadd[digest]{if $_GET['archiveid']}&archiveid={$_GET['archiveid']}{/if}" class="xi2{if $_GET['filter'] == 'digest'} xw1{/if}">{lang digest_posts}</a>
			</li>

			<!--{if empty($_G['forum']['picstyle']) && $_GET['orderby'] == 'lastpost' && (!$_G['setting']['forumseparator'] || !$separatepos) && !$_GET['filter']}-->
			<!--{/if}-->
			<!--{if $_GET['filter'] == 'hot'}-->
			<!--{/if}-->

			<!--{hook/forumdisplay_filter_extra}-->
		</ul>
	</div>
	<!--{else}-->
	<!--{/if}-->
	<!--{if empty($_G['forum']['picstyle'])}-->
	<!--{if CURMODULE == 'guide'}-->
	<!--{/if}-->
	<!--{else}-->
	<!--{/if}-->
</div>

<div class="bz-b-nava-ziban">
	<div class="bgDiv"></div>
	<div class="downNav">
		<div class="downNav-cancel">
			<a href="portal.php?mod=index&mobile=2">{lang return}{lang homepage}</a>
			<!--{if empty($_G['forum']['picstyle'])}-->
			<!--{else}-->
			<a{if empty($_G[ 'cookie'][ 'forumdefstyle'])} href="forum.php?mod=forumdisplay&fid=$_G[fid]&forumdefstyle=yes" class="chked iconfont icon-kaiguan-kai color-green" {else} href="forum.php?mod=forumdisplay&fid=$_G[fid]&forumdefstyle=no" class="unchk iconfont icon-kaiguan-guan color-b" {/if} style="font-size: 12px;">&nbsp;{lang view_thread_imagemode}</a>
			<!--{/if}-->		
		</div>
		<div style="height: 5px; background: #F6F6F6; width: 100%;"></div>
		<div class="downNav-list">
			<!--{if $sublist > 0}-->
	 			<!--{loop $sublist $sub}-->
					<a href="forum.php?mod=forumdisplay&fid={$sub[fid]}">{$sub['name']}</a>
				<!--{/loop}-->
			<!--{else}-->
			    	<div class="bznodata">
					<p class="iconfont icon-quxiaoguanzhu color-b" style="font-size: 50px;"></p>
					<p class="color-b">{lang forum_subforums}</p>
				</div>
			<!--{/if}-->
		</div>
	</div>
</div>

<div id="ct">
	<div class="bz-p10 bz-bg-f5f5f5" style="margin: 50px;">
		<div class="bz-fd-jinbi cl">
			<div>
				<h3>{lang youneedpay} $paycredits {$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['unit']}{$_G['setting']['extcredits'][$_G['setting']['creditstransextra'][1]]['title']} {lang onlyintoforum}</h3>
				<div class="o">
					<form method="post" autocomplete="off" action="forum.php?mod=forumdisplay&fid=$_G[fid]&action=paysubmit">
						<input type="hidden" name="formhash" value="{FORMHASH}" />
						<button class="pn vm" type="submit" name="loginsubmit" value="true"><strong>{lang confirmyourpay}</strong></button>
						&nbsp;
						<button class="pnc vm" type="button" onclick="history.go(-1)"><strong>{lang cancel}</strong></button>
					</form>
				</div>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
	$('.forum-fav').on('click', function() {
		var obj = $(this);
		$.ajax({
			type:'POST',
			url:obj.attr('href') + '&handlekey=forum-fav&inajax=1',
			data:{'favoritesubmit':'true', 'formhash':'{FORMHASH}'},
			dataType:'xml',
		})
		.success(function(s) {
			popup.open(s.lastChild.firstChild.nodeValue);
			evalscript(s.lastChild.firstChild.nodeValue);
		})
		.error(function() {
			window.location.href = obj.attr('href');
			popup.close();
		});
		return false;
	});
</script>

<!--{hook/global_footer_mobile}-->
<!--{eval $useragent = strtolower($_SERVER['HTTP_USER_AGENT']);$clienturl = ''}-->
<!--{if strpos($useragent, 'iphone') !== false || strpos($useragent, 'ios') !== false}-->
<!--{eval $clienturl = $_G['cache']['mobileoem_data']['iframeUrl'] ? $_G['cache']['mobileoem_data']['iframeUrl'].'&platform=ios' : 'http://www.discuz.net/mobile.php?platform=ios';}-->
<!--{elseif strpos($useragent, 'android') !== false}-->
<!--{eval $clienturl = $_G['cache']['mobileoem_data']['iframeUrl'] ? $_G['cache']['mobileoem_data']['iframeUrl'].'&platform=android' : 'http://www.discuz.net/mobile.php?platform=android';}-->
<!--{elseif strpos($useragent, 'windows phone') !== false}-->
<!--{eval $clienturl = $_G['cache']['mobileoem_data']['iframeUrl'] ? $_G['cache']['mobileoem_data']['iframeUrl'].'&platform=windowsphone' : 'http://www.discuz.net/mobile.php?platform=windowsphone';}-->
<!--{/if}-->
<div id="mask" style="display:none;"></div>
<!--{if !$nofooter}-->
<!--{/if}-->
<a class="bz-ziban bzdown"><i class="iconfont icon-more"></i></a>
<a href="<!--{if $_GET['mod'] == 'forumdisplay' || $_GET['mod'] == 'viewthread'}-->forum.php?mod=post&action=newthread&fid=$_G['fid']<!--{else}-->forum.php?mod=misc&action=nav<!--{/if}-->" class="bz-fatie"><i class="iconfont icon-fatie"></i></a>
<div class="banzhuan-clear"></div>
</body>
</html>
<!--{eval updatesession();}-->
<!--{if defined('IN_MOBILE')}-->
	<!--{eval output();}-->
<!--{else}-->
	<!--{eval output_preview();}-->
<!--{/if}-->